package jdly.water.api.dao.cost;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import jdly.water.api.util.PageUtil;
import jdly.water.entity.cost.PayRecord;

public interface PayDao extends JpaRepository<PayRecord,String> {
	
	@Query(value=" SELECT p FROM PayRecord p WHERE p.accountid = ?1 ORDER BY "+PageUtil.DEFAULT_SORT_FIELD+ " " + PageUtil.DEFAULT_SORT_TYPE+","+PageUtil.PRIMARY_FIELD+" "+PageUtil.DEFAULT_SORT_TYPE)
	public List<PayRecord> list(String id);

}
